package com.xiaoshuidi.cloud.module.finance.job.notify;

import com.xiaoshuidi.cloud.framework.common.pojo.PageParam;
import com.xiaoshuidi.cloud.module.finance.service.order.PayOrderService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 过期支付订单状态更新
 */
@Component("orderExpiredJob")
public class OrderExpiredJob {
    @Resource
    private PayOrderService payOrderService;

    @XxlJob("orderExpiredJob")
    public void execute() {
        PageParam p = new PageParam();
        p.setPageSize(100);
        payOrderService.selectExpiredPayOrder(p);
    }
}
